package com.sumainfor.pc.gmio.service.impl.cfo;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.gmio.dao.BillReviewMapper;
import com.sumainfor.pc.gmio.dao.tenant.BillMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 业主房租待打款
 * <p>
 *
 * @author: zhoucong
 * @create: 2019-07-02 23:56
 **/
@Service
public class CfoSearchServiceImpl implements Serializable {

    @Autowired
    private BillMapper billMapper;

    @Autowired
    private BillReviewMapper billReviewMapper;

    /**
     * @Description //TODO 根据房源编号查询房源支出
     * @return com.sumainfor.common.util.JsonResult
     * @Param []
     * @Date 2019/8/6 16:14
     **/
    public List<Map<String, Object>> getOutByHouId(Map<String, Object> params){
        List<Map<String, Object>> outByHouId = billReviewMapper.getOutByHouId(params);
        return outByHouId;
    }

    /**
     * @Description //TODO 根据房源编号查询房源收入
     * @return com.sumainfor.common.util.JsonResult
     * @Param []
     * @Date 2019/8/6 16:15
     **/
    public List<Map<String, Object>> getInByHouId(Map<String, Object> params){

        List<Map<String, Object>> inByHouId = billMapper.getInByHouId(params);
        return inByHouId;
    }

}
